package com.canaan.business.domain.bill;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.canaan.common.annotation.Excel;
import com.canaan.common.core.domain.BaseEntity;
import com.canaan.common.annotation.TableName;
/**
 * 托盘物料冻结对象 wms_tray_product_freeze
 *
 * @author canaan
 * @date 2025-04-21
 */
@ApiModel(description = "wms_tray_product_freeze")
@TableName("wms_tray_product_freeze")
@Data
public class TrayProductFreeze extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiModelProperty("${comment}")
    private Long id;

    /** 编号 */
    @Excel(name = "编号")
    @ApiModelProperty("编号")
    private String no;

    /** 托盘号 */
    @Excel(name = "托盘号")
    @ApiModelProperty("托盘号")
    private String trayNo;

    /** 库存状态 */
    @Excel(name = "库存状态")
    @ApiModelProperty("库存状态")
    private String stockStatus;

    /** 物料编号 */
    @Excel(name = "物料编号")
    @ApiModelProperty("物料编号")
    private String productNo;

    /** 数量 */
    @Excel(name = "数量")
    @ApiModelProperty("数量")
    private Long qty;

    /** 冻结数量 */
    @Excel(name = "冻结数量")
    @ApiModelProperty("冻结数量")
    private Long freezeQty;

    /** 是否删除：1是 0否 */
    @ApiModelProperty("冻结数量")
    private String delFlag;

    @ApiModelProperty("状态")
    private int status;
    @ApiModelProperty("批次号")
    private String batchNo;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("no", getNo())
            .append("trayNo", getTrayNo())
            .append("stockStatus", getStockStatus())
            .append("productNo", getProductNo())
            .append("qty", getQty())
            .append("freezeQty", getFreezeQty())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
